﻿using System;
using System.Collections.Generic;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Text;
using Credit.Objects;

namespace Credit {
	public class Server {
		private static Credit.MainForm form = new MainForm();
		[STAThread]static void Main() {
			Credit.Objects.Equifax.Form = form;
			try {
				RemotingConfiguration.Configure(AppDomain.CurrentDomain.FriendlyName + ".config");
				RemotingConfiguration.RegisterWellKnownServiceType(typeof(Equifax), Dimok.Config.Credit.equifax.ObjectUrl, WellKnownObjectMode.Singleton);
				//RemotingConfiguration.RegisterWellKnownServiceType(typeof(Dimok.Banker.Banker), RegBanker.RemoteUrl, WellKnownObjectMode.SingleCall);
			} catch (Exception exc) { System.Windows.Forms.MessageBox.Show(exc.Message + Environment.NewLine + exc.StackTrace); }
			System.Windows.Forms.Application.Run(form);
		}
	}
}
